//
//  LHDemoController.swift
//  SinaWeibo
//
//  Created by 美食家 on 17/3/29.
//  Copyright © 2017年 不孤独的美食家. All rights reserved.
//

import UIKit

class LHDemoController: LHBaseController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        title="\(navigationController?.childViewControllers.count ?? 0)"
        
    }
    
    func showNext() -> Void {
        let vc = LHDemoController()
        navigationController?.pushViewController(vc, animated: true)
    }
    

}

extension LHDemoController{
    
//    override func setupUI() {
//        super.setupUI()
//        navItem.rightBarButtonItem=UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext), isBack:false)
//        
//    }
    
    override func setupTableView() {
        super.setupTableView()
        navItem.rightBarButtonItem=UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext), isBack:false)
    }
    
    
    
    

}
